import request from '@/utils/request'

// 查询放款记录列表
export function listDealLeaseLoanRecord(query) {
  return request({
    url: '/record/dealLeaseLoanRecord/list',
    method: 'get',
    params: query
  })
}

// 查询放款记录详细
export function getDealLeaseLoanRecord(id) {
  return request({
    url: '/record/dealLeaseLoanRecord/' + id,
    method: 'get'
  })
}

// 保存放款记录
export function saveDealLeaseLoanRecord(data) {
  return request({
    url: '/record/dealLeaseLoanRecord/save',
    method: 'post',
    data: data
  })
}

// 删除放款记录
export function delDealLeaseLoanRecord(id) {
  return request({
    url: '/record/dealLeaseLoanRecord/' + id,
    method: 'delete'
  })
}

// 导出放款记录
export function exportDealLeaseLoanRecord(query) {
  return request({
    url: '/record/dealLeaseLoanRecord/export',
    method: 'get',
    params: query
  })
}

// 金额大小写转换
export function amountConversion(query) {
  return request({
    url: '/record/dealLeaseLoanRecord/amountConversion',
    method: 'get',
    params: {
      amount: query
    }
  })
}

